package ModelLayer;

/**
 * 
 * @author Gruppe 2
 * 
 */
public class Product {

	// instance variables
	private int productId;
	private String name;
	private double purchasePrice;
	private double salesPrice;
	private double rentPrice;
	private String countryOfOrigin;
	private int minStock;
	private Supplier supplier;

	/**
	 * 
	 * @param productId
	 * @param name
	 * @param purchasePrice
	 * @param salesPrice
	 * @param rentPrice
	 * @param countryOfOrigin
	 * @param minStock
	 * @param supplier
	 */
	public Product(int productId, String name, double purchasePrice,
			double salesPrice, double rentPrice, String countryOfOrigin,
			int minStock, Supplier supplier) {
		this.productId = productId;
		this.name = name;
		this.purchasePrice = purchasePrice;
		this.salesPrice = salesPrice;
		this.rentPrice = rentPrice;
		this.countryOfOrigin = countryOfOrigin;
		this.minStock = minStock;
		this.supplier = supplier;
	}

	public Product() {
		productId = 0;
		name = "";
		purchasePrice = 0;
		salesPrice = 0;
		rentPrice = 0;
		countryOfOrigin = "";
		minStock = 0;
		supplier = null;
	}

	/**
	 * 
	 * @return productId
	 */
	public int getProductId() {
		return productId;
	}

	/**
	 * 
	 * @param productId
	 */
	public void setProductId(int productId) {
		this.productId = productId;
	}

	/**
	 * 
	 * @return
	 */
	public String getName() {
		return name;
	}

	/**
	 * 
	 * @param name
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * 
	 * @return
	 */
	public double getPurchasePrice() {
		return purchasePrice;
	}

	/**
	 * 
	 * @param purchasePrice
	 */
	public void setPurchasePrice(double purchasePrice) {
		this.purchasePrice = purchasePrice;
	}

	/**
	 * 
	 * @return salesPrice
	 */
	public double getSalesPrice() {
		return salesPrice;
	}

	/**
	 * 
	 * @param salesPrice
	 */
	public void setSalesPrice(double salesPrice) {
		this.salesPrice = salesPrice;
	}

	/**
	 * 
	 * @return rentPrice
	 */
	public double getRentPrice() {
		return rentPrice;
	}

	/**
	 * 
	 * @param rentPrice
	 */
	public void setRentPrice(double rentPrice) {
		this.rentPrice = rentPrice;
	}

	/**
	 * 
	 * @return contryOfOrigin
	 */
	public String getCountryOfOrigin() {
		return countryOfOrigin;
	}

	/**
	 * 
	 * @param countryOfOrigin
	 */
	public void setCountryOfOrigin(String countryOfOrigin) {
		this.countryOfOrigin = countryOfOrigin;
	}

	/**
	 * 
	 * @return minStock
	 */
	public int getMinStock() {
		return minStock;
	}

	/**
	 * 
	 * @param minStock
	 */
	public void setMinStock(int minStock) {
		this.minStock = minStock;
	}

	/**
	 * @return the supplier
	 */
	public Supplier getSupplier() {
		return supplier;
	}

	/**
	 * @param supplier
	 *            the supplier to set
	 */
	public void setSupplier(Supplier supplier) {
		this.supplier = supplier;
	}

}
